@extends('layouts.master')

@section("css")
	@parent
@stop

@section("body")
<div class="row">
	<div class="col-md-12">
		<!-- INPUTS -->
		<div class="panel">
			<div class="panel-heading">
				<h3 class="panel-title">添加用户</h3>
			</div>
			<div class="panel-body">
				<div class="form-group">
				    <label class="sr-only" for="name">姓名</label>
				    <input id="name" type="text" class="form-control" placeholder="请输入名称">
			    </div>
			    <div class="form-group">
				    <label class="sr-only" for="name">登录账号</label>
				    <input id="uname" type="text" class="form-control" id="name" placeholder="请输入登录账号">
			    </div>
			    <div class="form-group">
				    <label class="sr-only" for="name">密码</label>
				    <input id="password" type="password" class="form-control" id="name" placeholder="请输入密码">
			    </div>
			    <div class="form-group">
				    <label class="sr-only" for="name">所属的角色</label>
				    <select id="role_id" class="form-control">
						<option>--请选择所属的角色--</option>
						@foreach($roles as $role)
							<option value="{{$role['id']}}">{{$role['role_name']}}</option>
						@endforeach
					</select>
			    </div>
				<button type="button" class="btn btn-primary btn-block create_btn">新建用户</button>
			</div>
		</div>
		<!-- END INPUTS -->
	</div>
</div>
@stop

@section("js")
	@parent
	<script type="text/javascript" src="/js/pages/admin/user/create.js"></script>
@stop